package com.ruoyi.system.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户信息对象 admin_weixin_user
 *
 * @author ruoyi
 * @date 2020-11-06
 */
public class AdminWeixinUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 微信号码 */
    @Excel(name = "微信号码")
    private String wexinId;

    /** 微信名称 */
    @Excel(name = "微信名称")
    private String wexinName;

    /** 用户余额 */
    @Excel(name = "用户余额")
    private BigDecimal price;

    /** 微信图片 */
    @Excel(name = "微信图片")
    private String image;

    /** 代理用户 */
    @Excel(name = "代理用户")
    private String room;

    private Integer isFlag;

    /** 用户上下分 **/
    private Integer flag;

    private Integer isRobot;

    private String sendMsg;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getSendMsg() {
        return sendMsg;
    }

    public void setSendMsg(String sendMsg) {
        this.sendMsg = sendMsg;
    }

    public Integer getIsRobot() {
        return isRobot;
    }

    public void setIsRobot(Integer isRobot) {
        this.isRobot = isRobot;
    }

    public Integer getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(Integer isFlag) {
        this.isFlag = isFlag;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWexinId(String wexinId)
    {
        this.wexinId = wexinId;
    }

    public String getWexinId()
    {
        return wexinId;
    }
    public void setWexinName(String wexinName)
    {
        this.wexinName = wexinName;
    }

    public String getWexinName()
    {
        if(StringUtils.isNotBlank(wexinName) && wexinName.indexOf("&")>-1){
            wexinName = wexinName.replaceAll("&","_");
        }
        return wexinName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wexinId", getWexinId())
            .append("wexinName", getWexinName())
            .append("price", getPrice())
            .append("image", getImage())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
